From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 14 23:22:02 2006 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces@qbang.org [mailto:rxtx-bounces@qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx@qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 14 23:22:03 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0001.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces@qbang.org [mailto:rxtx-bounces@qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx@qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 18:25:28 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0002.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces@qbang.org [mailto:rxtx-bounces@qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx@qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Tue Mar 28 20:17:22 2006 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0003.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0004.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0005.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0006.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0007.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0008.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0009.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0010.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0011.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0012.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0013.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0014.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0015.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0016.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0017.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0018.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0019.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0020.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0021.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0022.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0023.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0024.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0025.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0026.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0027.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0028.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0029.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0030.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0031.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0032.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0033.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0034.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0035.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0036.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0037.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0038.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0039.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0040.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0041.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0042.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0043.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0044.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0045.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0046.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0047.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0048.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0049.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0050.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0051.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0052.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0053.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0054.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0055.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0056.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0057.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0058.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0059.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0060.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0061.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0062.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0063.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0064.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0065.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0066.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0067.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0068.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0069.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0070.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0071.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0072.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0073.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0074.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0075.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0076.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0077.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0078.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0079.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0080.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0081.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0082.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0083.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0084.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0085.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0086.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0087.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0088.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0089.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0090.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0091.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0092.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0093.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0094.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0095.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0096.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0097.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0098.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0099.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0100.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0101.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0102.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0103.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0104.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0105.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0106.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0107.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0108.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0109.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0110.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0111.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0112.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0113.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0114.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0115.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0116.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0117.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0118.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0119.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0120.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0121.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0122.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0123.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0124.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0125.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0126.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0127.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0128.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0129.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0130.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0131.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0132.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0133.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0134.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0135.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0136.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0137.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0138.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0139.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0140.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0141.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0142.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0143.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0144.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0145.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0146.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0147.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0148.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0149.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0150.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0151.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0152.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0153.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0154.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0155.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0156.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0157.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0158.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0159.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0160.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0161.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0162.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0163.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0164.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0165.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0166.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0167.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0168.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0169.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0170.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0171.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0172.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0173.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0174.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0175.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0176.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0177.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0178.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0179.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0180.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0181.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0182.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0183.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0184.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0185.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0186.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0187.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0188.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0189.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0190.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0191.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0192.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0193.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0194.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0195.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0196.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0197.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0198.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0199.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0200.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0201.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0202.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0203.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0204.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0205.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0206.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0207.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0208.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0209.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0210.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0211.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0212.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0213.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0214.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0215.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0216.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0217.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0218.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0219.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0220.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0221.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0222.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0223.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0224.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0225.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0226.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0227.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0228.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0229.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0230.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0231.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0232.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0233.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0234.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0235.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0236.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0237.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0238.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0239.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0240.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0241.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0242.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0243.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0244.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0245.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0246.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0247.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0248.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0249.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0250.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0251.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0252.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0253.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0254.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0255.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0256.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0257.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0258.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0259.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0260.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0261.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0262.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0263.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0264.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0265.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0266.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0267.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0268.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0269.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0270.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0271.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0272.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0273.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0274.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0275.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0276.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0277.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0278.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0279.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0280.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0281.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0282.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0283.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0284.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0285.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0286.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0287.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0288.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0289.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0290.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0291.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0292.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0293.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0294.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0295.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0296.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0297.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0298.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0299.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0300.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0301.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0302.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0303.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0304.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0305.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0306.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0307.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0308.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0309.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0310.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0311.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0312.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0313.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0314.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0315.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0316.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0317.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0318.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0319.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0320.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0321.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0322.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0323.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0324.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0325.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0326.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0327.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0328.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0329.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0330.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0331.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0332.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0333.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0334.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0335.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0336.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0337.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0338.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0339.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0340.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0341.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0342.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0343.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0344.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0345.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0346.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0347.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0348.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0349.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0350.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0351.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0352.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0353.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0354.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0355.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0356.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0357.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0358.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0359.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0360.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0361.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0362.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0363.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0364.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0365.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0366.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0367.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0368.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0369.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0370.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0371.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0372.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0373.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0374.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0375.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0376.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0377.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0378.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0379.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0380.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0381.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0382.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0383.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0384.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0385.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0386.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0387.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0388.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0389.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0390.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0391.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0392.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos From trevor at opecsystem.com Mon Oct 24 01:45:43 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 24 Oct 2005 08:45:43 +0100 Subject: [Rxtx] No rx using usb-serial on linux, regarding previous problem submitted by Ewan Harrow Message-ID: <000201c5d86e$f08976b0$2b001eac@aries> Hi The list seems very quiet at the moment, so I am still stuck with the problem of no rx from the usb-serial ports when using the RXTX 2.1.7 libraries. I noticed in the mail archives, the Ewan Harrow seemed to have had the same problem and posted on 30th Jan 2004. So if there is still anybody out there from that time who may be able to recall the solution to this problem, perhaps even Ewan? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20051024/2a38245c/attachment-0393.html From tjarvi at qbang.org Tue Oct 25 00:12:04 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Tue, 25 Oct 2005 00:12:04 -0600 (MDT) Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: <000001c5d819$08ded350$6401a8c0@jimsrv> References: <000001c5d819$08ded350$6401a8c0@jimsrv> Message-ID: On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port driver > from lavalink. A call to getPortIdentifiers() returns a single normal > serial port (/dev/ttyS0) and a parallel port, but none of the serial ports > setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is arriving, > but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. From jimo at earthlink.net Tue Oct 25 19:23:22 2005 From: jimo at earthlink.net (Jim Owen) Date: Tue, 25 Oct 2005 18:23:22 -0700 Subject: [Rxtx] Ethernet Serial Ports In-Reply-To: Message-ID: <002001c5d9cb$db1b11e0$6401a8c0@jimsrv> Thanks Trent! I've got it working fine now. Regards, Jim -----Original Message----- From: rxtx-bounces at qbang.org [mailto:rxtx-bounces at qbang.org] On Behalf Of Trent Jarvi Sent: Monday, October 24, 2005 11:12 PM To: RXTX Developers and Users Subject: Re: [Rxtx] Ethernet Serial Ports On Sun, 23 Oct 2005, Jim Owen wrote: > Hi, > > I'm running the 2.4 RedHat kernel with an ethernet serial port > driver from lavalink. A call to getPortIdentifiers() returns a single > normal serial port (/dev/ttyS0) and a parallel port, but none of the > serial ports setup for the ethernet serial port driver. > > I can cat out the port to a modem and see that the command is > arriving, but I'm unable to get rxtx to correctly detect and identify this port. > > Any suggestions on this one? > The port probably has an atypical device name that needs to be added to RXTXCommDriver.java. You can add the port to the list and recompile just the java files to generate a new jar and it should work. It is also possible to override port names with properties. A way to test your port without doing any of this is to create a symbolic link from the device file to /dev/ttyS32 for instance. RXTX should detect the port as /dev/ttyS* are enumerated. _______________________________________________ Rxtx mailing list Rxtx at qbang.org http://mailman.qbang.org/mailman/listinfo/rxtx From darkeye at tyrell.hu Wed Oct 26 06:11:02 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:11:02 +0200 (CEST) Subject: [Rxtx] missing ParallelPort.java Message-ID: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Hi, I'm trying to compile rxtx 2.0 on a Mac, and it seems that ParallelPort.java is missing from the tarball. I get the following error: Error: Class gnu.io.ParallelPort could not be found. make: *** [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 I get the same error with 2.0-7pre1 and pre2. copying the missing file from rxtx-2.1-7pre7 reveals that there are even more files missing. in total: ParallelPort.java CommPort.java SerialPort.java there's another issue, which persits in both 2.0 and 2.1: the object file SerilaImp.o is actually generated as SerialImp.lo. thus one gets the following error when linking the JNI shared object: powerpc-apple-darwin8-gcc-4.0.0: /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: No such file or directory copying SerialImp.lo to SerialImp.o resolves the issue. Akos From darkeye at tyrell.hu Wed Oct 26 06:27:53 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:27:53 +0200 (CEST) Subject: [Rxtx] even more stuff missing Message-ID: <22394.62.68.186.19.1130329673.squirrel@mail.tyrell.hu> Going on with deployment, it seems that even more stuff is missing. Namely the following source files: CommDriver.java UnsupportedCommOperationException.java ParallelPortEventListener.java ParallelPortEvent.java SerialPortEventListener.java SerialPortEvent.java CommPortIdentifier.java CommPortOwnershipListener.java NoSuchPortException.java PortInUseException.java CommPortEnumerator.java also, the generated JNI shared object is not aptly named. a file named libSerial.jnilib is generated, whereas librxtxSerial.jnilib is actually being looked for... Akos From darkeye at tyrell.hu Wed Oct 26 06:58:40 2005 From: darkeye at tyrell.hu (=?iso-8859-1?Q?=C1kos_Mar=F3y?=) Date: Wed, 26 Oct 2005 14:58:40 +0200 (CEST) Subject: [Rxtx] even more errors Message-ID: <22369.62.68.186.19.1130331520.squirrel@mail.tyrell.hu> Trying to make it really work, I even encountered more errors. when trying to load the RXTXCommDriver class, I get: Exception in thread "main" java.lang.NoClassDefFoundError: javax.comm/CommPortIdentifier at gnu.io.RXTXCommDriver.registerKnownPorts(Native Method) at gnu.io.RXTXCommDriver.initialize(RXTXCommDriver.java:329) at SimpleTest.(SimpleTest.java:29) at SimpleTest.main(SimpleTest.java:24) it turns out that in the JNI code, repeatedly the package names are used wrongly. in registerKnownSerialPorts(), the following section is wrong: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax.comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax.comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax.comm/CommDriver;)V" ); /* dima */ corrently, the complete name references are: jmethodID mid; /* dima */ cls = (*env)->FindClass(env,"javax/comm/CommPortIdentifier" ); /* dima */ if (cls == 0) { /* dima */ report( "can't find class of javax/comm/CommPortIdentifier\n" ); /* dima */ return numPorts; /* dima */ } /* dima */ mid = (*env)->GetStaticMethodID(env, cls, "addPortName", "(Ljava/lang/String;ILjavax/comm/CommDriver;)V" ); /* dima */ now I can load RXTXCommDriver, but when trying to use the driver through the javax.comm API, I still get a ClassCastException: ========================================= Native lib Version = RXTX-2.0-7pre1 Java lib Version = RXTX-2.0-7pre1 Caught java.lang.ClassCastException while loading driver gnu.io.RXTXCommDriver Akos From tjarvi at qbang.org Wed Oct 26 11:31:13 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 11:31:13 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: On Wed, 26 Oct 2005, ?kos Mar?y wrote: > Hi, > > I'm trying to compile rxtx 2.0 on a Mac, and it seems that > ParallelPort.java is missing from the tarball. I get the following error: > > Error: Class gnu.io.ParallelPort could not be found. > make: *** > [/Users/nextlab/src/serial/rxtx-2.0-7pre1/gnu/io/Configure.class] Error 15 > > > I get the same error with 2.0-7pre1 and pre2. > > copying the missing file from rxtx-2.1-7pre7 reveals that there are even > more files missing. in total: > > ParallelPort.java > CommPort.java > SerialPort.java > > > there's another issue, which persits in both 2.0 and 2.1: the object file > SerilaImp.o is actually generated as SerialImp.lo. thus one gets the > following error when linking the JNI shared object: > > powerpc-apple-darwin8-gcc-4.0.0: > /Users/nextlab/src/serial/rxtx-2.0-7pre1/powerpc-apple-darwin8.2.0/SerialImp.o: > No such file or directory > > copying SerialImp.lo to SerialImp.o resolves the issue. > > Hi Akos This and your next email concerning missing files suggest you are going about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work with the files Sun provides. Mixing rxtx 2.1 and 2.0 isnt a good idea as many of the source files need to be modified to support the different packages. There could easily bee problems with Mac OS X parallel support though. Most of the work has been for rxtx 2.1 Serial Ports in rxtx. From darkeye at tyrell.hu Wed Oct 26 16:50:04 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 00:50:04 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> Message-ID: <4360081C.8030203@tyrell.hu> Trent Jarvi wrote: > This and your next email concerning missing files suggest you are going > about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are > in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work > with the files Sun provides. but what are you suggesting? I did have the Sun-provided comm.jar installed when I tried to compile rxtx... Akos From tjarvi at qbang.org Wed Oct 26 17:03:57 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:03:57 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: <4360081C.8030203@tyrell.hu> References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Thu, 27 Oct 2005, ?kos Mar?y wrote: > Trent Jarvi wrote: >> This and your next email concerning missing files suggest you are going >> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >> with the files Sun provides. > > but what are you suggesting? I did have the Sun-provided comm.jar > installed when I tried to compile rxtx... > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package name is not matching but there is no need to grab SerialPort.java from rxtx 2.1. In fact that will cause problems like you ran into. Make sure that comm.jar is indeed in your class. Also check to make sure the packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to avoid conflicts with Sun's comm.jar. This will cause problems as SerialPort.class should be provided by Sun in package javax.comm with rxtx 2.0. The same applies for ParallelPort.java From tjarvi at qbang.org Wed Oct 26 17:09:28 2005 From: tjarvi at qbang.org (Trent Jarvi) Date: Wed, 26 Oct 2005 17:09:28 -0600 (MDT) Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: On Wed, 26 Oct 2005, Trent Jarvi wrote: > On Thu, 27 Oct 2005, ?kos Mar?y wrote: > >> Trent Jarvi wrote: >>> This and your next email concerning missing files suggest you are going >>> about recreating rxtx 2.1 with rxtx 2.0. The files you are missing are >>> in CommAPI from Sun and just a few files are needed in rxtx 2.0 to work >>> with the files Sun provides. >> >> but what are you suggesting? I did have the Sun-provided comm.jar >> installed when I tried to compile rxtx... >> >> > > > If you do jar -tf comm.jar you will see SerialPort.class. Perhaps a package > name is not matching but there is no need to grab SerialPort.java from rxtx > 2.1. In fact that will cause problems like you ran into. > > Make sure that comm.jar is indeed in your class. Also check to make sure the > packages are matching. RXTX 2.1 will put SerialPort.java in class gnu.io to > avoid conflicts with Sun's comm.jar. This will cause problems as > SerialPort.class should be provided by Sun in package javax.comm with rxtx > 2.0. > > The same applies for ParallelPort.java One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while trying to compile 2.0. This is a very common mistake and results in problems not unlike what you are experiencing. The 2.0 and 2.1 versions while nearly identical in native code use different java packages resulting in incompatability. RXTX 2.1 can not be in the javax.comm namespace because of the (current) Sun license. From darkeye at tyrell.hu Thu Oct 27 03:09:53 2005 From: darkeye at tyrell.hu (=?ISO-8859-1?Q?=C1kos_Mar=F3y?=) Date: Thu, 27 Oct 2005 11:09:53 +0200 Subject: [Rxtx] missing ParallelPort.java In-Reply-To: References: <22413.62.68.186.19.1130328662.squirrel@mail.tyrell.hu> <4360081C.8030203@tyrell.hu> Message-ID: <43609961.2060803@tyrell.hu> Trent Jarvi wrote: > One more point. Be sure rxtx 2.1 (RXTXcomm.jar) is not installed while > trying to compile 2.0. This is a very common mistake and results in this seems to have been the mistake, now it works fine! thanks for the help! Akos